package com.ruoyi.buy.service;

import com.ruoyi.buy.domain.entity.PO.BuySpaPricePO;
import com.ruoyi.buy.domain.entity.buy0001.BuyDrawingImportData;
import com.ruoyi.buy.domain.entity.buy0001.BuySpa;
import com.ruoyi.buy.domain.entity.buy0001.BuySpaImportData;
import com.ruoyi.buy.domain.entity.buy0001.BuySpaSearchInDto;

import java.util.List;

/**
 * 角色业务层
 * 
 * @author ruoyi
 */
public interface IBuy0001Service
{
    /**
     * 根据条件分页查询零件数据
     * 
     * @param param 零件查询条件信息
     * @return 零件数据集合信息
     */
    public List<BuySpa> selectSpaList(BuySpaSearchInDto param);

    /**
     * 批量删除备件数据信息
     *
     * @param iDs 需要删除的备件数据ID
     */
    public void deleteDictDataByIds(Long[] iDs);

    /**
     * 新增保存零件信息
     *
     * @param param 零件信息
     * @return 结果
     */
    public int insertSpaInfo(BuySpa param) throws Exception;

    /**
     * 根据ID查询零件详细数据
     *
     * @param iD 零件查询条件
     * @return 零件数据实体
     */
    public BuySpa selectSpaById(Long iD) throws Exception;

    /**
     * 新增保存零件信息
     *
     * @param param 零件信息
     * @return 结果
     */
    public int updateSpaInfo(BuySpa param) throws Exception;

    public List<BuySpaPricePO> viewPrice(BuySpa param);

    public BuySpaPricePO selectSpaByCondition(BuySpaPricePO param) throws Exception;

    public int importSpaData(List<BuySpaImportData>  list,String oprName) throws Exception;

    public int importDrawData(List<BuyDrawingImportData>  list, String oprName) throws Exception;

}
